﻿export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        name: 'login',
        path: '/user/login',
        component: './user/Login',
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/welcome',
    name: '首页',
    icon: 'smile',
    component: './Welcome',
  },
  {
    path: '/',
    redirect: '/welcome',
  },
  {
    path: '/map',
    layout: false,
    icon: 'table',
    name: '一屏通览',
    access: 'map',
    component: './Map',
  },
  {
    path: '/riskList',
    name: '风险综合管理',
    icon: 'BankOutlined',
    access: 'risk_list',
    routes: [
      { path: '/riskList', redirect: '/riskList/riskFacility' },
      {
        path: '/riskList/riskFacility',
        name: '风险点',
        access: 'risk_facility',
        component: './RiskList/RiskFacility',
      },
      {
        path: '/riskList/hiddenRisks',
        name: '风险隐患',
        access: 'hidden_risks',
        component: './RiskList/HiddenRisks',
      },
      {
        path: '/riskList/control',
        name: '防控管理',
        access: 'control',
        component: './RiskList/Control',
      },
      {
        path: '/riskList/troubleshoot',
        name: '风险排查',
        access: 'troubleshoot',
        component: './RiskList/Troubleshoot',
      },
      {
        path: '/riskList/rule',
        name: '风险制度',
        access: 'rule',
        component: './RiskList/Rule',
      },
      { component: './404' },
    ],
  },
  {
    path: '/hidden',
    name: '风险隐患及处置',
    icon: 'ShopOutlined',
    access: 'hidden',
    routes: [
      { path: '/hidden', redirect: '/hidden/hiddenManage' },
      {
        path: '/hidden/hiddenManage',
        name: '隐患自行处置',
        access: 'hidden_manage',
        component: './Hidden/HiddenManage',
      },
      {
        path: '/hidden/report',
        name: '隐患上报网格化',
        access: 'report',
        component: './Hidden/Report',
      },
      { component: './404' },
    ],
  },
  {
    path: '/monitor',
    name: '风险监测',
    icon: 'ShopOutlined',
    access: 'monitor',
    routes: [
      { path: '/monitor', redirect: '/monitor/things' },
      {
        path: '/monitor/things',
        name: '物联监测',
        access: 'things',
        component: './Monitor/Things',
      },
      {
        path: '/monitor/vedio',
        name: '视频监控',
        access: 'vedio',
        component: './Monitor/Vedio',
      },
      { component: './404' },
    ],
  },
  {
    path: '/earlyWarn',
    name: '风险预警管理',
    icon: 'UserOutlined',
    access: 'early_warn',
    routes: [
      { path: '/earlyWarn', redirect: '/earlyWarn/systemWarning' },
      {
        path: '/earlyWarn/systemWarning',
        name: '监测系统预警',
        access: 'system_warning',
        component: './EarlyWarn/SystemWarning',
      },
      {
        path: '/earlyWarn/caseWarning',
        name: '案件预警',
        access: 'case_warning',
        component: './EarlyWarn/CaseWarning',
      },
      { component: './404' },
    ],
  },
  {
    path: '/emergency',
    name: '应急保障管理',
    icon: 'UserOutlined',
    access: 'emergency',
    routes: [
      { path: '/emergency', redirect: '/emergency/reserve_plan' },
      {
        path: '/emergency/reserve_plan',
        name: '预案管理',
        access: 'reserve_plan',
        component: './Emergency/ReservePlan',
      },
      {
        path: '/emergency/resource',
        name: '保障资源',
        access: 'resource',
        component: './Emergency/Resource',
      },
      { component: './404' },
    ],
  },
  {
    path: '/system',
    name: '系统管理',
    icon: 'UserOutlined',
    access: 'system',
    routes: [
      { path: '/system', redirect: '/system/facilityType' },
      {
        path: '/system/facilityType',
        name: '设施类型',
        access: 'facility_type',
        component: './System/FacilityType',
      },
      {
        path: '/system/code',
        name: '码表管理',
        access: 'code',
        component: './System/Code',
      },
      {
        path: '/system/permission',
        name: '权限管理',
        access: 'permission',
        component: './System/Permission',
      },
      {
        path: '/system/unit',
        name: '单位管理',
        access: 'unit',
        component: './System/Unit',
      },
      {
        path: '/system/api',
        name: '接口管理',
        access: 'api',
        component: './System/Api',
      },
      {
        path: '/system/log',
        name: '日志管理',
        access: 'log',
        component: './System/Log',
      },
      { component: './404' },
    ],
  },
  {
    path: '/statistics',
    name: '统计分析',
    icon: 'UserOutlined',
    access: 'statistics',
    routes: [
      { path: '/statistics', redirect: '/statistics/pointInfo' },
      {
        path: '/statistics/pointInfo',
        name: '风险点统计',
        access: 'point_info',
        component: './Statistics/PointInfo',
      },
      {
        path: '/statistics/hiddenInfo',
        name: '风险隐患统计',
        access: 'hidden_info',
        component: './Statistics/HiddenInfo',
      },
      {
        path: '/statistics/troubleshootInfo',
        name: '风险排查统计',
        access: 'troubleshoot_info',
        component: './Statistics/TroubleshootInfo',
      },
      {
        path: '/statistics/emergencyInfo',
        name: '突发事件信息汇总',
        access: 'emergency_info',
        component: './Statistics/EmergencyInfo',
      },
      {
        path: '/statistics/analysis',
        name: '报送统计分析',
        access: 'analysis',
        component: './Statistics/Analysis',
      },
      { component: './404' },
    ],
  },
  {
    component: './404',
  },
];
